<template>
  <div class="mobile_nav">
    <router-view />
    <div id="bottom_nav">
    <router-link class="tab-bar-item" to="/mobileview/home">
      <div class="icon">
        <i class="el-icon-s-home"></i>
      </div>
      <div>首页</div>
    </router-link>
    <router-link class="tab-bar-item" to="/mobileview/categorys">
      <div class="icon">
        <i class="el-icon-present"></i>
      </div>
      <div>分类</div>
    </router-link>
    <router-link class="tab-bar-item" to="/mobileview/shopcar">
      <div class="icon">
        <i class="el-icon-shopping-cart-2"></i>
      </div>
      <div>购物车</div>
    </router-link>
    <router-link class="tab-bar-item" to="/mobileview/profile">
      <div class="icon">
        <i class="el-icon-user-solid"></i>
      </div>
      <div>我的</div>
    </router-link>
    </div>
  </div>
</template>

<script>

export default {
  name: 'MobileView',
  data() {
    return {
      show: true
    }
  },
  methods: {

  }
}
</script>

<style lang="scss">
@import url("../assets/css/base.css");
.mobile_nav{
  left: calc((100% - 460px)/2);
  position: fixed;
  border: 1px solid #f6f6f6da;
  width: 460px;
  height: 680px;
}

#bottom_nav {
  background-color: #f6f6f6;
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 -5px 15px rgba(100, 100, 100, 0.1);
  a {
    // font-weight: bold;
    // color: #666;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
  .tab-bar-item {
    flex: 1;
    text-align: center;
    height: 50px;
    font-size: 14px;
  }
  .tab-bar-item .icon {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    display: inline-block;
    vertical-align: middle;
  }
}
</style>